package com.example.springbootapplication.context;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * hello world 初始类
 * @Author acy
 * @Date 2019/04/27
 */
@Order(Ordered.HIGHEST_PRECEDENCE)
public class HelloWorldApplicationInitializer<C extends ConfigurableApplicationContext> implements ApplicationContextInitializer<C> {
	@Override
	public void initialize(C applicationContext) {
		System.out.println("ConfigurableApplicationContext.id-------------"+applicationContext.getId());
	}
}
